<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                template="/WEB-INF/template/menu-template.xhtml">s

    <ui:define name="metadata">
        <!--<f:metadata>
            <f:viewAction action="#{userBean.findUser(param['id'])}" />
        </f:metadata>-->
    </ui:define>

    <ui:define name="content">

<div class="registerForm">
        <h2>Update User</h2>
        <h:form>
            <h:outputText value='Username: '/>
            <h:inputText value='#{userBean.user.username}'/><br/>
            <h:outputText value='Password: '/>
            <h:inputText value='#{userBean.user.password}'/><br/>
            <h:outputText value='First Name: '/>
            <h:inputText value='#{userBean.user.firstName}'/><br/>
            <h:outputText value='Last name: '/>
            <h:inputText value='#{userBean.user.lastName}'/><br/>
            <h:commandButton action="#{userBean.updateUser()}" value="Update User"/>
        </h:form>
</div>
    </ui:define>
</ui:composition>